<cfset snip = viewState.getValue("snip") />
<cfset libs = viewState.getValue("libs") />
<cfset roles = viewState.getValue("roles") />
<cfdump var="#viewState.getall()#" expand="false">
<cfoutput>
<form action="#viewstate.getValue("myself")#processSnipForm" method="post">
	<input type="hidden" id="snipid" name="snipid" value="#snip.getSnipid()#">
		<p><b>*</b> fields are required. </p>
		<fieldset >
		<legend>Snip Information</legend>
			 <label for="name">name: </label>
				<input type="text" id="name" name="name" tabindex="2" value="#snip.getname()#" title="name"><br>
			 <label for="useremail">User email: </label>
				<input type="text" id="useremail" name="useremail" tabindex="3" value="#snip.getuseremail()#" title="useremail"><br>
			 <label for="parent">Library: </label>
			 	<select name="parent">
				 	<cfloop query="libs">
					<option value="#libid#" <cfif snip.getParent() is libID>selected</cfif>>#name#</option>
					</cfloop>
				</select>
				<br>
			 <label for="help">Help: </label>
				<input type="text" id="help" name="help" tabindex="5" value="#snip.getHelp()#" title="help"><br>
			 <label for="description">Description: </label>
				<input type="text" id="description" name="description" tabindex="6" value="#snip.getdescription()#" title="description"><br>
			 <label for="starttext">Start Text: </label>
				<input type="text" id="starttext" name="starttext" tabindex="7" value="#snip.getstarttext()#" title="starttext"><br>
			 <label for="endtext">End Text: </label>
				<input type="text" id="endtext" name="endtext" tabindex="8" value="#snip.getendtext()#" title="endtext"><br>
			 <label for="author">Author: </label>
				<input type="text" id="author" name="author" tabindex="9" value="#snip.getauthor()#" title="author"><br>
			 <label for="platforms">Platforms: </label>
				<input type="text" id="platforms" name="platforms" tabindex="10" value="#snip.getplatforms()#" title="platforms"><br>
			 <label for="template">Template: </label>
				<input type="text" id="template" name="template" tabindex="11" value="#snip.gettemplate()#" title="template"><br>
			 <label for="published">Published: </label>
				<input type="checkbox" id="published" name="published" tabindex="14" value="1" <cfif snip.getpublished() is 1>checked</cfif>  title="published"><br>
			
			<label for="submit"></label>
				<input type="submit" value="Save Snip" id="submit" tabindex="100">
		</fieldset>
</form>
</cfoutput>

	
  